<table style="width:100%;" cellpadding="8" cellspacing="8">
<tr>
{foreach from=$aItems item=aItem key=iKey}
<td style="width:33%; vertical-align:top;">
	<span style="font-size:11pt; font-weight:bold;">{language translate=$aItem.list_name}</span>
	<table>
	<tr>
		<td style="vertical-align:top;">
		
    	<table style="margin-left:auto;margin-right:auto;vertical-align;top;">
    	<tr>
    	<td>
		<div class="wrap1"> 
			<div class="wrap2"> 
    	    	<div class="wrap3"> 
    	        	<div class="wrap4"> 
    	            	<div class="wrap5">
						<a href="{url link='public.videos' listid=$aItem.list_id foxseotitle=$aItem.list_name}">
							{img max_width="120"  src="`$sGImageUrl``$aItem.vid_id`.jpg" src_def="design/pic/noimage_120.jpg" alt="" id="mainimage"}
						</a>
					 	</div>
					</div>
				</div>
			</div>
		</div>
		</td>
		</tr>
		</table>
		
		</td>
		{if $aItem.vid_title}
		<td style="vertical-align:top;">
			{language text='Mod_Video.recent_video'}
			<br />
			<a href="{url link='public.videos' id=$aItem.vid_id foxseotitle=$aItem.vid_title}">
				{$aItem.vid_title|escape|truncate:'20'|clean}
			</a>
			<div style="padding-top:10px;">
				{language text='Mod_Video.last_updated'}:
				<br />
				{$aItem.vid_time|time_added}
			</div>
		</td>
		{/if}
	</tr>
	</table>
</div>
</td> 
{if $iKey % 3 == 2}
</tr>
<tr>
	<td colspan="3">
		<div style="padding:4px;" class="border13"></div>
		<br />
		<br />
	</td>
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>